package com.hikvision.rpq.sblearn.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author renpeiqian
 * @date 2021/9/7 17:55
 * @since
 */
//@Aspect
@Component
public class LogAdvice {

    @Pointcut("@annotation(org.springframework.web.bind.annotation.GetMapping)")
    private void logAdvicePointcut(){
    }


    @Before("logAdvicePointcut()")
    public void logAdviceBefore(){
        System.out.println("get请求的advice触发了");
    }
}
